raise VmError(("pci: PCI Backend and pci-stub don't own device %s")\
%pci_device.name)
+ strict_check = xoptions.get_pci_dev_assign_strict_check()
# Check non-page-aligned MMIO BAR.
- if pci_device.has_non_page_aligned_bar and arch.type != "ia64":
+ if pci_device.has_non_page_aligned_bar and strict_check:
raise VmError("pci: %s: non-page-aligned MMIO BAR found." % \
pci_device.name)
if not self.info.is_hvm():
return
- if not xoptions.get_pci_dev_assign_strict_check():
+ if not strict_check:
return
# Check if there is intermediate PCIe switch bewteen the device and
raise VmError(("pci: PCI Backend and pci-stub don't own "+ \
"device %s\n") %(dev.name))
- if dev.has_non_page_aligned_bar and arch.type != "ia64":
- raise VmError("pci: %s: non-page-aligned MMIO BAR found." % dev.name)
-
self.CheckSiblingDevices(fe_domid, dev)
# We don't do FLR when we create domain and hotplug device into guest,
raise VmError("pci: failed to locate device and "+
"parse its resources - "+str(e))
+ if dev.has_non_page_aligned_bar and strict_check:
+ raise VmError("pci: %s: non-page-aligned MMIO BAR found." % dev.name)
+
# Check if there is intermediate PCIe switch bewteen the device and
# Root Complex.
if self.vm.info.is_hvm() and dev.is_behind_switch_lacking_acs() \